package com.zzxy.spring.aspect;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.MethodBeforeAdvice;
import java.lang.reflect.Method;

public class MyAspect1 implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation mi) throws Throwable {
        System.out.println("before...");
        Object obj = mi.proceed();

        System.out.println("after...");
        return obj;
    }
}